{% extends "base.html" %}

{% load i18n %}

{% block breadcrumbs %}
  <li class="breadcrumb-item">
    <a href="{% url 'projects' %}">{% translate "Projects" %}</a>
  </li>
{% endblock breadcrumbs %}

{% block content %}

  {% include "list-projects.html" with add_link="project" %}

  {% include "paginator.html" with page_obj=projects %}

  {% if payment_enabled %}
    <p>
      <a href="{% url 'create-billing' %}?upgrade=1" class="btn btn-primary">{% translate "Purchase new hosting plan" %}</a>
    </p>
  {% elif offer_hosting %}
    <p>
      <a class="btn btn-primary" href="{% url 'hosting' %}">{% translate "Ask for project hosting" %}</a>
    </p>
  {% endif %}

{% endblock content %}
